package com.zhangsun.system.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import lombok.Getter;

/**
 * 资源类型
 */
@Getter
public enum ResourceTypeEnum implements IEnum<String> {

    MENU("菜单"),
    ACTION("动作");

    private String description;

    ResourceTypeEnum(String description) {
        this.description = description;
    }

    @Override
    public String getValue() {
        return this.name();
    }

    @Override
    public String toString() {
        return "{\\\"value\\\": \\\"" + this.getValue() + "\\\", \\\"description\\\": \\\"" + this.getDescription() + "\\\"}";
    }
}
